package com.pxmeta.order.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 语聊派对表
 * </p>
 *
 * @author wcl
 * @since 2022-06-25
 */
@TableName("kt_user_order_record")
@ApiModel(value = "用户订单表", description = "用户订单表")
@Data
public class UserOrderRecord implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("主键")
    @TableId(type = IdType.ASSIGN_ID)
    private Long id;

    @ApiModelProperty("用户id")
    private Long userId;

    @ApiModelProperty("技能id")
    private Integer skillId;

    @ApiModelProperty("目标用户id")
    private Long targetUserId;

    @ApiModelProperty(value = "是否已下单")
    private Boolean isSuccess;

    @ApiModelProperty(value = "订单状态: 0待接单，1进行中，2待评价，3已完成，-1已拒绝，-2退款中，-3已退款")
    private Integer status;

    @ApiModelProperty("得分(0-5)")
    private Integer score;

    @ApiModelProperty("类型：0声动连线，1陪玩")
    private Integer type;

    @ApiModelProperty("派对id")
    private String partyId;

    @ApiModelProperty("折扣类型：1每日一币")
    private Integer discountType;

    @ApiModelProperty(value = "总费用")
    private Integer totalPrice;

    @ApiModelProperty(value = "总数")
    private Integer totalCount;

    @ApiModelProperty("创建时间")
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @ApiModelProperty("修改时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;
}
